<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let arr = ['张三', '李四', '刘德华', '王五', '老六']
        let tamp = arr.pop()
        arr.push(arr.shift())
        arr.unshift(tamp)
        arr.splice(2,1)
        arr.push('刘德华')
        console.log(arr);
        
        
        </script>
  </body>
</html>
